#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
struct Student
{
	char name[20];
	char studentclass[30];
	int age;
};
int main()
{
	printf("请输入student或者time");
	char time[] = "23:20:24";
	char hh[20];
	scanf("%s", &hh);
	struct Student student = { "黄民深","信息2403",18 };
	if (strcmp(hh, "time") == 0)
	{
		printf("%s",time);
	}
	else if (strcmp(hh, "student") == 0)
	{
		printf("%s ", student.name);
		printf("%s ", student.studentclass);
		printf("%d ", student.age);
	}
	else
	{
		printf("错误，请按上述要求输入");
	}

	return 0;
}